package cn.boysoft.core.exception;
/**
 * @author 付厚俊
 * CreateTime 2013-4-4 上午11:24:15
 */
public class JEEException extends RuntimeException{
	private static final long serialVersionUID = 8090134371059306125L;
	private String errorCode;
	
	static final public String SYSTEM_ERROR="100";
	static final public String NOT_FIND_SERVICE="101";
	static final public String JSON_PARSE_ERROR="102";
	static final public String PARAM_IS_NULL="103";
	static final public String CANT_NOT_FIND_RECORD="104";
	static final public String OBJECT_ID_IS_NULL="105";
	
	
	
	public JEEException(String errorCode){
		this.errorCode = errorCode;
	}
	
//	public JEEException(String errorCode,String errorMsg){
//		super(errorMsg);
//		this.errorCode = errorCode;
//		this.errorMsg = errorMsg;
//		
//	}
	@Override
	public  Throwable fillInStackTrace() {
		return this;
	}


	public String getErrorCode() {
		return errorCode;
	}
	
	
}
